<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <h3>这是个只有基本框架的后台</h3>
    <h4>主要是演示主次菜单的关联</h4>
    <div>
      <p><router-link to="/editpwd/index"> 无子菜单时，左侧菜单自动隐藏 <el-button type="success" size="small">无子菜单示例</el-button></router-link></p>
      <p><router-link to="/example/table"> 有子菜单时，左侧菜单自动展开 <el-button type="success" size="small">有子菜单示例</el-button></router-link></p>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
